var MptPlugins = { "view": {}, "model": {}, "ctrl": {}, "global": {} };

MptPlugins["view"] = [

    // route	
	'app_route.js',
	'friend_route.js',
	'gift_route.js',
	'guide_route.js',
	'help_route.js',
	'index_route.js',
	'message_route.js',
	'mission_route.js',
	'myspace_route.js',
	'profile_route.js',
	'rank_route.js',
	'register_route.js',
	'shop_route.js',
	'topic_route.js',
	'welcome_route.js',
	'ufriend_route.js',
	'uprofile_route.js',
	'uspace_route.js',

    // layout
	'ly121_layout.js',
	'ly13_layout.js',
	'ly4_layout.js'
];

MptPlugins["ctrl"] = [

    // controller
	'frame_test_act.js',
	'header_act.js',
	'login_form_act.js',
	'jiathis_share_act.js',
	'upper_my_info_act.js',
	'upper_u_info_act.js',
	'clm_social_act.js',
	'clm_visiter_act.js',
	'clm_hot_topic_act.js',
	'clm_interest_act.js',
	'clm_game_value.js',
	'myspace_menu_act.js',
	'myspace_act.js',
	'register_act.js',
	'guide_info_act.js',
	'guide_avatar_act.js',
	'to_top_act.js',
	'message_friend_act.js',
	'friend_act.js',
	'friend_visit_act.js',
	'friend_invite_act.js',
	'friend_find_act.js',
	'friend_follow_act.js',
	'uspace_act.js',
	'profile_act.js',
	'profile_editInfo_act.js',
	'profile_gameTitle_act.js',
	'profile_snsCard_act.js',
	"profile_editAvatar_act.js",
	"uprofile_act.js"
];

MptPlugins["model"] = [

    // model
	'user_model.js',

    // object
	'util_object.js',
	'dialog_object.js',
	'tween_object.js',
	'site_object.js',
	'verifier_object.js',
	'set_nickname_object.js',
	'backend_object.js',
	'social_util_object.js',
	'tip_object.js',
	'edit_avatar_class.js',
	'blog_util_object.js',
	
    // class
	'tab_class.js',
	'paginate_class.js',
	'publish_class.js',
];

MptPlugins["global"] = [
	
	// config
	'config.js'
	
];

for(var i=0; i<MptPlugins["view"].length; i++)
{
	document.write('<sc' + 'ript language="javascript" type="text/javascript" src="' + MPT.Config['static_http'] + '/js/res' + '/view/'+ MptPlugins["view"][i] + '"></sc' + 'ript>');
}

for(var i=0; i<MptPlugins["model"].length; i++)
{
	document.write('<sc' + 'ript language="javascript" type="text/javascript" src="' + MPT.Config['static_http'] + '/js/res' + '/model/'+ MptPlugins["model"][i] + '"></sc' + 'ript>');
}

for(var i=0; i<MptPlugins["ctrl"].length; i++)
{
	document.write('<sc' + 'ript language="javascript" type="text/javascript" src="' + MPT.Config['static_http'] + '/js/res' + '/ctrl/'+ MptPlugins["ctrl"][i] + '"></sc' + 'ript>');
}

for (var i = 0; i < MptPlugins["global"].length; i++) {
    document.write('<sc' + 'ript language="javascript" type="text/javascript" src="' + MPT.Config['static_http'] + '/js/res' + '/' + MptPlugins["global"][i] + '"></sc' + 'ript>');
}
